Optimal. Leaf size=78 \[ \frac{\sqrt{a^2+2 a b x+b^2 x^2} (a+b x)^2 (b d-a e)}{3 b^2}+\frac{e \sqrt{a^2+2 a b x+b^2 x^2} (a+b x)^3}{4 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0578095, antiderivative size = 78, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.097, Rules used = {770, 21, 43} \[ \frac{\sqrt{a^2+2 a b x+b^2 x^2} (a+b x)^2 (b d-a e)}{3 b^2}+\frac{e \sqrt{a^2+2 a b x+b^2 x^2} (a+b x)^3}{4 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 770
Rule 21
Rule 43
Rubi steps
\begin{align*} \int (a+b x) (d+e x) \sqrt{a^2+2 a b x+b^2 x^2} \, dx &=\frac{\sqrt{a^2+2 a b x+b^2 x^2} \int (a+b x) \left (a b+b^2 x\right ) (d+e x) \, dx}{a b+b^2 x}\\ &=\frac{\left (b \sqrt{a^2+2 a b x+b^2 x^2}\right ) \int (a+b x)^2 (d+e x) \, dx}{a b+b^2 x}\\ &=\frac{\left (b \sqrt{a^2+2 a b x+b^2 x^2}\right ) \int \left (\frac{(b d-a e) (a+b x)^2}{b}+\frac{e (a+b x)^3}{b}\right ) \, dx}{a b+b^2 x}\\ &=\frac{(b d-a e) (a+b x)^2 \sqrt{a^2+2 a b x+b^2 x^2}}{3 b^2}+\frac{e (a+b x)^3 \sqrt{a^2+2 a b x+b^2 x^2}}{4 b^2}\\ \end{align*}
Mathematica [A] time = 0.0242511, size = 64, normalized size = 0.82 \[ \frac{x \sqrt{(a+b x)^2} \left (6 a^2 (2 d+e x)+4 a b x (3 d+2 e x)+b^2 x^2 (4 d+3 e x)\right )}{12 (a+b x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 66, normalized size = 0.9 \begin{align*}{\frac{x \left ( 3\,{b}^{2}e{x}^{3}+8\,{x}^{2}abe+4\,{x}^{2}{b}^{2}d+6\,xe{a}^{2}+12\,abdx+12\,d{a}^{2} \right ) }{12\,bx+12\,a}\sqrt{ \left ( bx+a \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66913, size = 109, normalized size = 1.4 \begin{align*} \frac{1}{4} \, b^{2} e x^{4} + a^{2} d x + \frac{1}{3} \,{\left (b^{2} d + 2 \, a b e\right )} x^{3} + \frac{1}{2} \,{\left (2 \, a b d + a^{2} e\right )} x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.096458, size = 49, normalized size = 0.63 \begin{align*} a^{2} d x + \frac{b^{2} e x^{4}}{4} + x^{3} \left (\frac{2 a b e}{3} + \frac{b^{2} d}{3}\right ) + x^{2} \left (\frac{a^{2} e}{2} + a b d\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11986, size = 119, normalized size = 1.53 \begin{align*} \frac{1}{4} \, b^{2} x^{4} e \mathrm{sgn}\left (b x + a\right ) + \frac{1}{3} \, b^{2} d x^{3} \mathrm{sgn}\left (b x + a\right ) + \frac{2}{3} \, a b x^{3} e \mathrm{sgn}\left (b x + a\right ) + a b d x^{2} \mathrm{sgn}\left (b x + a\right ) + \frac{1}{2} \, a^{2} x^{2} e \mathrm{sgn}\left (b x + a\right ) + a^{2} d x \mathrm{sgn}\left (b x + a\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]